package evance.server.common.service;

import java.util.Collection;

import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.userdetails.User;

import evance.data.model.entity.EvLoginInfo;

public class CurrentUserDetails extends User {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	public CurrentUserDetails(String username, String password, boolean enabled, boolean accountNonExpired, boolean credentialsNonExpired, boolean accountNonLocked,
			Collection<? extends GrantedAuthority> authorities, EvLoginInfo evLoginInfo) {
		super(username, password, enabled, accountNonExpired, credentialsNonExpired, accountNonLocked, authorities);
		this.loginInfo = evLoginInfo;
	}

	private EvLoginInfo loginInfo;

	public EvLoginInfo getEvLoginInfo() {
		return loginInfo;
	}
}
